﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<thead>
  <tr>
    <c:set var="colAmount" value="${(empty coachView or coachView) ? 5 : 4}"/>
    <th class="text-center" colspan="${(end-start)*2+colAmount}" style="background-color: #69AB1F; color: #fff;">
      <a href="${ctx.host}/${refer == 'search' ? 'schedules/search' : 'schedules'}?${empty queryString ? '' : queryString}${not empty param.filter ? '&filter=true' : ''}${empty queryString ? '' : '&'}week=${week-1}" class="button button-link button-nav pull-left" style="text-decoration: none"><span class="glyphicon glyphicon-chevron-left"></span>上一周</a>
      ${desc}
      <c:if test="${week < weekOffset}">
        <a href="${ctx.host}/${refer == 'search' ? 'schedules/search' : 'schedules'}?${empty queryString ? '' : queryString}${not empty param.filter ? '&filter=true' : ''}${empty queryString ? '' : '&'}week=${week+1}" class="button button-link button-nav pull-right" style="text-decoration: none">下一周<span class="glyphicon glyphicon-chevron-right"></span></a>
      </c:if>
    </th>
  </tr>
</thead>
